package com.heima.search.service;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.search.dtos.UserSearchDto;

import java.io.IOException;
import java.util.Map;

public interface ArticleSearchService {
    /**
     ES文章分页搜索
     @return
     */
    ResponseResult search(UserSearchDto userSearchDto) throws IOException;
    /**
     * 添加索引文章
     * @param articleId
     * @param article
     * @throws IOException
     */
    void saveArticle(String articleId, Map article) throws IOException;
    /**
     * 删除索引文章
     * @param articleId
     * @throws IOException
     */
    void deleteArticle(String articleId) throws IOException;
}